package com.ylyq.ylxx.controller;

import com.ylyq.ylxx.model.ResponseData;
import com.ylyq.ylxx.model.request.GetReportRequest;
import com.ylyq.ylxx.service.IOceanegineReportService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @ClassName OceanengineReportController
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/7/2 11:38
 * @Version 1.0
 */
@RestController
@RequestMapping("/oCeanengine/report")
@Api(description = "巨量引擎数据报表接口的相关接口")
public class OceanengineReportController {
    @Autowired
    private IOceanegineReportService iOceanegineCreativeService;

    @PostMapping("/getReport")
    @ApiOperation(value = "获取数据报表接口")
    public ResponseData getReport(@Valid @RequestBody GetReportRequest getReportRequest) {
        return iOceanegineCreativeService.getReport(getReportRequest);
    }
}
